package com.dwy2002.pojo.po.refund;

import com.dwy2002.pojo.po.base.BaseDeleted;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;

/**
 * 退款课程明细表
 *
 * @author 杜伟毅
 * @version 1.0
 * @since 2025/03/15
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class RefundCourse extends BaseDeleted {
    /**
     * 关联退款记录ID
     */
    private String refundId;

    /**
     * 原订单课程ID
     */
    private String orderCourseId;

    /**
     * 退款单价
     */
    @JsonSerialize(using = ToStringSerializer.class) // 将 BigDecimal 序列化为字符串
    private BigDecimal refundPrice;

    /**
     * 逻辑删除：0-未删除 1-已删除
     */
    private Integer deleted;
}
